﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AzureGames.Model
{
    // <summary>
    /// A player of games on the portal.  Primarily the public information
    /// </summary>
    public abstract class Player : BaseDataObject
    {
        public const int User = 1;
        public const int AI = 2;
        public const int Anonymous = 0;

        public Player(string id, string name, int playerType)
        {
            Name = name;
            ID = id;
            PlayerType = playerType;
        }

        public string ID { get; set; }
        public string Name { get; set; }
        public int PlayerType { get; set; }

        /// <summary>
        /// A Resource ID for the Player's Avatar image file
        /// </summary>
        public Guid AvatarImage { get; set; }
    }

    public class AnonymousPlayer : Player
    {
        public AnonymousPlayer()
            : base(Guid.Empty.ToString(), "Guest", Player.Anonymous)
        {
        }
    }
}
